<div>
	<a href="{$SCRIPT_NAME}?action=add">Přidat zákazníka</a>
	<table class="tb">
		<tr>
			<td><strong>ID</strong>&nbsp;<a href="{$SCRIPT_NAME}?action=default&orderby=id">&uarr;</a>&nbsp;<a href="{$SCRIPT_NAME}/default/?orderby=id&amp;order=desc">&darr;</a></td>
			<td><strong>Jméno</strong></td>
			<td><strong>Ulice</strong>&nbsp;<a href="{$SCRIPT_NAME}?action=default&orderby=ulice">&uarr;</a>&nbsp;<a href="{$SCRIPT_NAME}/default/?orderby=ulice&amp;order=desc">&darr;</a></td>
			<td><strong>Telefon</strong></td>
			<td><strong>Čas</strong>&nbsp;<a href="{$SCRIPT_NAME}?action=default&orderby=cas">&uarr;</a>&nbsp;<a href="{$SCRIPT_NAME}/default/?orderby=cas&amp;order=desc">&darr;</a></td>
			<td><strong>Poznámky</strong></td>
			<td><strong>Mapa</strong></td>
			<td><strong>Akce</strong>&nbsp;</td>
		</tr>
		{section name=i loop=$customers}
		<tr>
			<td>{$customers[i].ID}</td>
			<td>{$customers[i].JMENO}</td>
			<td>{$customers[i].ULICE}</td>
			<td>{$customers[i].TELEFON}</td>
			
			<td>{$customers[i].CAS}</td>
			<td>{$customers[i].POZNAMKY}</td>
			<td><a href="http://maps.google.com/maps?q={$customers[i].ULICE},+Praha" target="_blank"><img src="http://www.inkosro.cz/images/ikonky/.1/map.gif" /></a></td>
			<td>
				<a href="{$SCRIPT_NAME}?action=edit&id={$customers[i].ID}" title="Editovat">
				<img style="float:left;" src="%3D%3D" />
				</a>
				
				<a href="{$SCRIPT_NAME}?action=del&id={$customers[i].ID}" title="Smazat">
				<img style="float:right;" src="%3D%3D" />
				</a>
			</td>
		</tr>
		{/section}
	</table>
	<table width="100%">
		<tr>
			<td> | 
				{section name=k loop=$years}
				<a href="{$SCRIPT_NAME}?action=setYear&year={$years[k].ROK}">{$years[k].ROK}</a> | 
				{/section}
			</td>
			<td align="right">
				{$smarty.session.Login.username|capitalize} - <a href="{$SCRIPT_NAME}?module=auth&action=logout">Odhlásit</a>
			</td>
		</tr>
	</table>
</div>